package com.hz.lowb.nami.base.po;

import java.io.Serializable;
import java.util.Date;

/**
 * <p> Title：UserDo </p>
 * <p> Description：用户 数据库映射类 </p>
 * <p> Table: nami_user </p>
 * <p> Group：LowB </p>
 *
 * @Author TieCheng
 * @Date 2017/1/5 13:43
 * @Since 0.0.5
 */
public class UserDo implements Serializable {

    /**
     * id
     */
    private Long userId;

    /**
     * name
     */
    private String userName;

    /**
     * password
     */
    private String userPassword;

    /**
     * mobile
     */
    private String userMobile;

    /**
     * email
     */
    private String userEmail;

    /**
     * balance
     * accessible by money or credit
     */
    private Double userBalance;

    /**
     * credit
     * to get something useful
     */
    private Integer userCredit;

    /**
     * 用户状态
     * 1：在线；2：离开；3：忙碌；4：离线
     */
    private Integer userStatue;

    /**
     * time create the user
     */
    private Date userCreateTime;

    /**
     * time the user go online
     */
    private Date userLoginTime;

    /**
     * time the user go offline
     */
    private Date userLogoutTime;

    /**
     * vip level id
     */
    private Long vipId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserMobile() {
        return userMobile;
    }

    public void setUserMobile(String userMobile) {
        this.userMobile = userMobile;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public Double getUserBalance() {
        return userBalance;
    }

    public void setUserBalance(Double userBalance) {
        this.userBalance = userBalance;
    }

    public Integer getUserCredit() {
        return userCredit;
    }

    public void setUserCredit(Integer userCredit) {
        this.userCredit = userCredit;
    }

    public Integer getUserStatue() {
        return userStatue;
    }

    public void setUserStatue(Integer userStatue) {
        this.userStatue = userStatue;
    }

    public Date getUserCreateTime() {
        return userCreateTime;
    }

    public void setUserCreateTime(Date userCreateTime) {
        this.userCreateTime = userCreateTime;
    }

    public Date getUserLoginTime() {
        return userLoginTime;
    }

    public void setUserLoginTime(Date userLoginTime) {
        this.userLoginTime = userLoginTime;
    }

    public Date getUserLogoutTime() {
        return userLogoutTime;
    }

    public void setUserLogoutTime(Date userLogoutTime) {
        this.userLogoutTime = userLogoutTime;
    }

    public Long getVipId() {
        return vipId;
    }

    public void setVipId(Long vipId) {
        this.vipId = vipId;
    }

    @Override
    public String toString() {
        return "UserDo{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userMobile='" + userMobile + '\'' +
                ", userEmail='" + userEmail + '\'' +
                ", userBalance=" + userBalance +
                ", userCredit=" + userCredit +
                ", userStatue=" + userStatue +
                ", userCreateTime=" + userCreateTime +
                ", userLoginTime=" + userLoginTime +
                ", userLogoutTime=" + userLogoutTime +
                ", vipId=" + vipId +
                '}';
    }

}
